import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty, IsOptional } from 'class-validator'

export class CreateSalaryDto {
  @ApiProperty({ description: '员工ID', example: 1 })
  @IsNotEmpty({ message: '员工ID不能为空' })
  staffId: number
  @ApiProperty({ description: '备注', example: '备注' })
  @IsOptional()
  remark?: string
}
